FROM java:8
EXPOSE 8080

VOLUME /tmp
ADD target/*.jar  /app.jar
RUN bash -c 'touch /app.jar'
# java -jar app.jar --Dspring.profiles.avtive=prod
ENTRYPOINT ["java","-jar","/app.jar","--spring.profiles.avtive=prod"]
